﻿@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
    ViewBag.Title = "链接信息操作";
}

@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
}
@model LY.Entity.C_Links

<div class="container">

    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">链接信息操作</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带“ <span style="color: red">*</span> ”标示为必填项</div>
                <div class="box_center">
                    <form  id="frmEdit" method="post" action="@Url.Action("LinksSave")" role="form" class="jqtransform">
                        <input id="hideId" name="Id" value="@Model.Id" type="hidden" />
                       @* <input id="linksType" name="linksType" value="@Model.LinkType" type="hidden" />*@

                        <table class="form_table pt15 pb15" style="width: 100%;" border="0">
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;链接类型：</td>
                                <td class="">
                                    @Html.ResourceDropDownList("LinkType", "LinkType", @Model.LinkType, new { @class="wh80 select"})
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;链接名字：</td>
                                <td class="">
                                    <input type="text" id="LinkName" name="LinkName" value="@Model.LinkName" class="input-text lh30" size="40" placeholder="请输入链接名字" >
                                </td>
                            </tr>
                            
                             <tr>
                                <td class="td_right">链接图片：</td>
                                <td class="">
                                    <div class="uploadImg">
                                        <img id="imgShow" style="width: 296px; height: 180px" src="@Model.LinkImg" />
                                       @* <input type="hidden" id="TitlePic" name="TitlePic"  value="@Model.TitlePic"/>
                                        <input type="hidden" id="Pictures" name="Pictures" value="@Model.Pictures"/>*@
                                        <input type="hidden" id="fileName" name="LinkImg" value="@Model.LinkImg"/>
                                        <input type="button" id="btnUploadImg" value="上传"/>
                                    </div>
                                </td>
                            </tr>

                               <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;链接地址：</td>
                                <td class="">
                                    <input type="text" id="LinkUrl" name="LinkUrl" value="@Model.LinkUrl" class="input-text lh30" size="40" placeholder="请输入链接地址" >
                                </td>
                            </tr>

                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;添加时间：</td>
                                <td class="">
                                    <input type="text" id="AddTime" name="AddTime" placeholder="请选择日期" onclick="WdatePicker();" value="@Model.AddTime" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;是否显示：</td>
                                 <td class="">
                                    @Html.ResourceDropDownList("IsDisplay", "ISTOP", @Model.IsDisplay, new { @class="wh80 select"})
                                </td>
                            </tr>
                           <tr>
                                <td class="td_right"><span style="color: red">*</span>&nbsp;顺序：</td>
                                <td class="">
                                    <input type="text" id="Sequence" name="Sequence" value="@Model.Sequence" class="input-text lh30" size="40" placeholder="请输入顺序" >
                                      <span style="color:red;" id="SequenceValiate"></span>
                                </td>
                            </tr>
                          
                            <tr>
                                <td class="td_right">&nbsp;</td>
                                <td class="">
                                    <input type="button" id="btnSave" name="button" class="btn btn82 btn_save2" value="保存">
                                    <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回">
                                </td>
                            </tr>
                        </table>
                        <input type="hidden" id="hideContent" name="Content" />
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section jssection{

    <script type="text/javascript">
        var util = {};
        var options = {
          @*  MenuTreeUrl: "@Url.Action("MenuTree")",*@
            uploadUrl: "@Url.Action("UploadImg", "Helper")"
        };
    </script>
 

    <script src="~/Content/assets/plugins/validator/validator.js"></script>
   @* <script src="~/Content/assets/js/common.js"></script>*@
    <script src="~/Content/assets/DatePicker/WdatePicker.js"></script>
   @* <script src="~/Content/assets/layer/layer.min.js"></script>*@
    <script src="~/Content/assets/app/common/ajaxupload.js"></script>
    <script src="~/Content/assets/app/Links/linksedit.js"></script>
 
}